using System;
// ReSharper disable InconsistentNaming

namespace Groove.Core.Win32
{
    internal class NativeInterop
    {
        public const int WM_PRINTCLIENT = 0x0318;
        public const int PRF_CLIENT = 0x00000004;

        public static bool IsWinXp
        {
            get
            {
                var os = Environment.OSVersion;
                var vs = os.Version;
                if (os.Platform == PlatformID.Win32NT)
                    return vs.Major == 5 && vs.Minor != 0;
                return false;
            }
        }

        public static bool IsWinVista
        {
            get
            {
                var os = Environment.OSVersion;
                return os.Platform == PlatformID.Win32NT && os.Version.Major >= 6;
            }
        }
    }
}
